
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
        <meta content="telephone=no" name="format-detection" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        {$page_seo}
        <link type="text/css" rel="stylesheet" href="{res file=css/common.css}">
            <link type="text/css" rel="stylesheet" href="{res file=css/index.css}">
                <link type="text/css" rel="stylesheet" href="{res file=css/flexslider.css}">

                    <link type="text/css" rel="stylesheet" href="{res file=css/detail.css}">
                        <link type="text/css" rel="stylesheet" href="{res file=css/css.css}">
                            <script type="text/javascript" src="{res file=js/jquery-1.8.0.min.js}" charset="utf-8"></script>
                            <script type="text/javascript" src="{res file=js/sub_menu.js}" charset="utf-8"></script>
                            <script type="text/javascript" src="{res file=js/touchslider.dev.js}" charset="utf-8"></script>
                            <script type="text/javascript" src="index.php?act=jslang"></script>


                            <script type="text/javascript">
                            //<!CDATA[
                                var SITE_URL = "{$site_url}";
                                var REAL_SITE_URL = "{$real_site_url}";
                                var PRICE_FORMAT = '{$price_format}';

                            //]]>
                            </script>
                            {$_head_tags}

                            </head>

                            <body>
                                {include file=header.html}


                                <!---------详情页------------->
                                {include file=goodsinfo.html}

                                <div class="detail_con" style="margin-bottom:60px">
                                    <ul class="tab">
                                        <li class="cur">商品详情</li>
                                        <li><span>{$comments}</span></li>
                                    </ul>
                                    <div class="tab_con">
                                        {$goods.description|escape:editor}
                                    </div>
                                    <div class="tab_con " style="display:none;">
                                        <ul class="comments_list ">
                                            <!-- {foreach from=$goods_comments item=comment} -->
                                            <li>
                                                <p><span>{if $comment.anonymous}***{else}{$comment.buyer_name|escape}{/if} ({$comment.evaluation_time|date:complete})</span><b style="float:right;margin-right:8px">评分:{if $comment.evaluation gt 0}<img style="width:11px;height:11px;" src="{res file=images/bit.gif}" />{/if}
                                                        {if $comment.evaluation gt 1}<img style="width:11px;height:11px;" src="{res file=images/bit.gif}" />{/if}
                                                        {if $comment.evaluation gt 2}<img style="width:11px;height:11px;" src="{res file=images/bit.gif}" />{/if}
                                                        {if $comment.evaluation lt 3}<img style="width:11px;height:11px;" src="{res file=images/bit2.gif}" />{/if}
                                                        {if $comment.evaluation lt 2}<img style="width:11px;height:11px;" src="{res file=images/bit2.gif}" />{/if}
                                                        {if $comment.evaluation lt 1}<img style="width:11px;height:11px;" src="{res file=images/bit2.gif}" />{/if}</b></p>
                                                <p class="con">{$comment.comment|escape|nl2br}</p>
                                            </li>
                                            <!-- {foreachelse} -->
                                            <li>该商品还没有评论!</li>
                                            <!-- {/foreach} -->
                                        </ul>
                                        <!--------翻页-------------->

                                    </div>
                                </div>
                                <!----------tab切换--------------->
                                <script type="text/javascript">
                                    jQuery(function(jq) {
                                        function changeTab(lis, divs) {
                                            lis.each(function(i) {
                                                var els = jq(this);
                                                els.click(function() {
                                                    lis.removeClass();
                                                    divs.stop().hide().animate({'opacity': 0}, 0);
                                                    jq(this).addClass("cur");
                                                    divs.eq(i).show().animate({'opacity': 1}, 300);
                                                });
                                            });
                                        }
                                        var rrE = jq(".detail_con");
                                        changeTab(rrE.find(".tab li"), rrE.find(".tab_con"));

                                    });
                                </script>
                                <!------底部-------->
                                {include file=footer.html}
                            </body>
                            </html>
